<template>
  <div id="index">
    <el-container>
      <el-header height="61px">
        <div class="header-container">
          <a href="" @click.prevent="route_redirect_push('home')" class="logo"><img src="~assets/img/home/phoenix.jpg" alt=""></a>
          <div class="nav-input"><el-input placeholder="请输入内容"></el-input></div>
          <el-menu  class="el-menu-demo" mode="horizontal">
            <el-menu-item index="1">博客</el-menu-item>
            <el-submenu index="2">
              <template slot="title">项目</template>
              <el-menu-item index="2-1" @click="route_redirect_push('project/music')">网易云音乐</el-menu-item>
            </el-submenu>
            <el-menu-item index="3" disabled>消息中心</el-menu-item>
            <el-menu-item index="4"><a href="https://www.ele.me" target="_blank">反馈</a></el-menu-item>
          </el-menu>
        </div>
      </el-header>
      <el-main>Main</el-main>
      <el-footer>Footer</el-footer>
    </el-container>
  </div>
</template>
<script>

export default {
  name: "Index",
  data(){
    return{

    }
  },
  methods: {
    route_redirect_push(path){
      this.$router.push(path)
    }
  },
}
</script>
<style scoped>
  .el-container{
    margin: 0;
    padding: 0;
  }
 .el-header {
    height: 60px;
    background-color: #fff;
    color: #fff;
    top: 0;
    left: 0;
    width: 100%;
    line-height: 60px;
    z-index: 100;
    position: relative;
  }
  .header-container {
    width: 1140px;
    padding: 0;
    margin: 0 auto;
    height: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid #dcdfe6;
  }
  .logo{
    float: left;
  }
  .logo img {
    width: 60px;
    height: 60px;
  }
  .nav-input{
    /* position: absolute; */
    width: 165px;
    float: left;
    /* left: 135px; */
    /* top: 16px */
  }
  .el-menu{
    /* position: absolute; */
    /* width: 165px; */
    /* left: 135px; */
    /* top: 16px */
    float: right;
  }
  .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 70px;
  }
  
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 200px;
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    line-height: 160px;
  }
  
  body > .el-container {
    margin-bottom: 40px;
  }
/*   
  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }
  
  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  } */
</style>
